package com.ilioili.appframe;

import com.ilioili.app.R;
import com.ilioili.appframe.waterfalldemo.WaterfallDemo;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class MainActivity extends Activity {
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
	}

	public void onClick(View v){
		Intent it = null;
		switch(v.getId()){
		case R.id.bt_waterfall:
			it = new Intent(this, WaterfallDemo.class);
			break;
		case R.id.bt_listview:
			it = new Intent(this, ListViewWithPictures.class);
			break;
		case R.id.bt_gridview:
			it = new Intent(this, GridViewWithPictures.class);
			break;
		case R.id.bt_orm:
			it = new Intent(this, OrmDemo.class);
			break;
		}
		startActivity(it);
	}
	
	@Override
	public void startActivity(Intent intent) {
		super.startActivity(intent);
		overridePendingTransition(R.anim.slide_in_left, R.anim.slide_out_right);
	}
}
